/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package net.csdra.cms.wordpress;

import com.google.common.util.concurrent.AbstractIdleService;
import java.util.logging.Logger;
import net.csdra.cms.wordpress.config.AppConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 *
 * @author Didy
 */
//@Configuration
//@Component
//@ComponentScan("*")
//@ImportResource("classpath:provider.xml")
public class Starter extends AbstractIdleService {

    @Override
    protected void startUp() throws Exception {
        LOG.info("startUp");

    }

    @Override
    protected void shutDown() throws Exception {
        LOG.info("shutDown");
    }
    private static final Logger LOG = Logger.getLogger(Starter.class.getName());

    public static void main(String[] args) throws Exception {

        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class);
        Starter starter=new Starter();
        starter.startUp();
        starter.awaitTerminated();

    }

}
